package com.hx.collection;


import java.util.ArrayList;
import java.util.List;

/**
 * @author jxlgcmh
 * @create 2019-06-19 15:09
 */
public class ListDemo {

    public static void main(String[] args) {
        List<String> list = new ArrayList<>();
        list.add("a");
        list.add("b");
        list.add("c");
        String[] strings = list.toArray(new String[0]);
        System.out.println(strings.length);
        for (String string : strings) {
            System.out.println(string);
        }
    }
}
